﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;

namespace Controller.Class
{
    public class ReportObjectDocument : tblDocument
    {

        public string doctypeDescript { get; set; }


    }

    public class ReportObjectDocumentDetail : tblDocumentDatail
    {
        public decimal ddiscountprice { get; set; }
        public string docID { get; set; }
        public string firstname { get; set; }
        public string lastname { get; set; }
        public string created { get; set; }
        public DateTime? confirmToSapDate { get; set; }
        public DateTime? validon { get; set; }
        public DateTime? validto { get; set; }
        public string validstring { get; set; }
        public decimal?  level1 { get; set; }
        public decimal? level2 { get; set; }
        public decimal? level3 { get; set; }
        public string salegrp { get; set; }
        public int approveLevel { get; set; }
        public string Status { get; set; }
        public string approveBy { get; set; }
        public string approveByUserName  { get; set; }
        public int sort { get; set; }
		public string imageLicense { get; set; }
        public string usernameOwner { get; set; }
        public string isoText { get; set; }
        public string RefId2 { get; set; }
        public string validonstring
        {
            get
            {
                if (validon != null)
                {
                    return validon.Value.ToLongDateString();
                }
                else
                {
                    return "";
                }
            }
        }
        public string validtostring
        {
            get
            {
                if (validto != null)
                {
                    return validto.Value.ToLongDateString();
                }
                else
                {
                    return "";
                }
            }
        }
        public string confirmToSapstring
        {
            get
            {
                if (confirmToSapDate != null)
                {
                    return confirmToSapDate.Value.ToLongDateString() + ", " + confirmToSapDate.Value.ToLongTimeString() ;
                }
                else
                {
                    return "";
                }
            }
        }
        public string doctype { get; set; }
        public string cusID { get; set; }
        public string remark { get; set; }
        public string remark2 { get; set; }
        public string dc { get; set; }
        public string approverColor { get; set; }
        public string approver1Color { get; set; }
        public string approver2Color { get; set; }
        public string approver3Color { get; set; }
        public string approver4Color { get; set; }
        public string approverDisplay { get; set; }
        public string approver1Display { get; set; }
        public string approver2Display { get; set; }
        public string approver3Display { get; set; }
        public string approver4Display { get; set; }
    }

    public class NDpriceReport : tblNDPriceDetail
    {

        public string prodDisplay { get; set; }
        public string currentMonth { get; set; }
        public string currentMOnthTo { get; set; }
        public string currentTime { get; set; }
        public string  saleName { get; set; }
        public string saleTel { get; set; }
        public string saleCoName { get; set; }
        public string saleCoTel { get; set; }
        public string saleCoFax { get; set; }
        public string docsID { get; set; }
        public string typeDisplay { get; set; }
        public string  typeSort { get; set; }
        public string priceGrp { get; set; }
        public string customerName { get; set; }
    }

    public class ProductDiscount
    {
        public int producGrpID { get; set; }
        public string prodDisplayName { get; set; }
        public decimal discount { get; set; }
        public decimal discountBath { get; set; }
    }

    public class DocumentRefObect
    {
        public string RefID { get; set; }
        public string RefDisplay { get; set; }
    }
}
